<?php /* Smarty version Smarty-3.0.9, created on 2013-05-09 12:46:21
         compiled from "C:/wamp/www/glight/templates\nivel.tpl" */ ?>
<?php /*%%SmartyHeaderCode:373518b9a9d215726-59625290%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '818c5ae2e515eef97078de1c5e30e2e9b25aa5a3' => 
    array (
      0 => 'C:/wamp/www/glight/templates\\nivel.tpl',
      1 => 1365276065,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '373518b9a9d215726-59625290',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

<div>
    <style type="text/css"> @import url(../css/form.css); </style>
    <h3>Diseñar Nivel</h3>
    <form action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l__global'];?>
nivel.php?option=mostrardatos" method="POST">
        <table id="tableForm" class="tableForm" >

            <tr>
                <td></td> 
                <td>
                    <h4>Nivel</h4>
                    <hr>
                </td>

            </tr> 
            <tr>
                <td>
                    Nombre:
                </td>
                <td>
                    <input type="text" required id="nombreLvl" name="nombreLvl" autocomplete="off">
                </td>
            </tr>

            <tr>
                <td>
                    Dificultad:
                </td>
                <td>
                    <select required name="dificultad">
                        <option value="facil" selected>Facil</option>
                        <option value="medio">Medio</option>
                        <option value="dificil" >Dificil</option>
                        <option value="ultra">Ultra</option>
                    </select>
                </td>
            </tr>

            <tr>
                <td>
                    Mision:
                </td>
                <td>
                    <textarea  required name="mision" autocomplete="off"></textarea>
                </td>
            </tr>    
            <tr>
                <td></td> 
                <td>
                    <h4>Escenario</h4>
                    <hr>
                </td>

            </tr>
            <tr>

                <td>
                    Nombre:
                </td>

                <td>
                    <input type="text" required id="nombreEsc" name="nombreEsc" autocomplete="off">
                </td>
            </tr>
            <tr>
                <td>Descripcion:</td>

                <td>
                    <textarea  required id="descEsc" name="descEsc" autocomplete="off"></textarea>
                </td>
            </tr>

            <tr>
                <td>Mapa:</td>
                <td><input type="text" required id="mapa" name="mapa" autocomplete="off"></td>
            </tr>

            <tr>
                <td></td> 
                <td>
                    <h4>Personajes</h4>
                    <hr>
                </td>
            </tr>
            <tr>
                <td></td> 
                <td>
                    <div class="formcheckbox">
                        <input type="checkbox" id="personaje1" name="personaje1" value="Personaje 1">Personaje 1<br> 
                        <input type="checkbox" id="personaje2" name="personaje2" value="Personaje 2">Personaje 2<br>
                        <input type="checkbox" id="personaje3" name="personaje3" value="Personaje 3">Personaje 3<br>
                        <input type="checkbox" id="personaje4" name="personaje4" value="Personaje 4">Personaje 4 <br> 
                        <input type="checkbox" id="personaje5" name="personaje5" value="Personaje 5">Personaje 5<br>
                        <input type="checkbox" id="personaje6" name="personaje6" value="Personaje 6">Personaje 6<br>
                        </div>
                </td> 

            </tr>

            <tr>
                <td></td> 
                <td>
                    <h4>Items</h4>
                    <hr>
                </td>

            </tr>

            <tr>
                <td></td>
                <td>
                    <div class="formcheckbox">
                        <input type="checkbox" id="item1" name="item1" value="Item 1">Item 1<br>
                        <input type="checkbox" id="item2" name="item2" value="Item 2" checked>Item 2<br>
                        <input type="checkbox" id="item3" name="item3" value="Item 3">Item 3<br>

                    </div>
                </td> 

            </tr>
            <tr>
                <td>

                </td>
                <td>
                    <hr>
                    <div class="submit">
                        <input type="submit" value="Diseñar nivel">
                    </div>

                </td>
            </tr>

        </table><br />
    </form>
    <?php if (isset($_smarty_tpl->getVariable('Nivel',null,true,false)->value)){?>
        <table id="tableForm" class="tableForm" >
            <tr><td>
                    <h4> Resultados:</h4><br/><br/>
                    <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('Nivel')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
                    <b><?php echo $_smarty_tpl->tpl_vars['key']->value;?>
  :</b> <?php echo $_smarty_tpl->tpl_vars['value']->value;?>
<br/><br/>

                     <?php }} ?>
                </td></tr></table>  
     <?php }?>
</div>